<?php
    
/**
 * 朋友关系类
 * @author Schelling
 *
 */    
class friendship
{
    /**
     * 发起好友请求的一方
     * @var unknown
     */
    public $userask;
    
    /**
     * 接受请求的一方
     * @var unknown
     */
    public $useraccept;
    
    /**
     * 建立朋友关系的时间， 对应mysql中的datatime类型
     * @var unknown
     */
    public $time;
        
    
    public function __construct($userask, $useraccept, $time)
    {
        $this->userask = $userask;
        $this->useraccept = $useraccept;
        $this->time = isset($time)? $time : date("Y-m-d H:i:s");     
    }
    
    
    
    
    
}


    


?>